<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="http://code.jquery.com/jquery-latest.js"></script>
<title>관심직원목록</title>
<script type="text/javascript">
$(document).ready(function(){
	$("input:button").click(function(){
		var chkVal = "";
		$("input:checkbox:checked").each(function(){
			chkVal = chkVal +this.value+", ";
		});
		opener.document.inputRequestBoard.approName.value = chkVal;
		window.close();
	});
});

</script>
</head>
<body>
	<center>
	<br>
	<h2>
		<font color="orange">관심직원목록</font>
	</h2>
	<form method=post action="/${initParam.context_root }/typeOne.do">
	<table>
		<tr bgcolor = "lightgray">
			<th>체크</th>
			<th>이름(사번)</th>
			<th>소속</th>
			<th>생일</th>
		</tr>
		<c:forEach items="${requestScope.selectEmpList}" var="emp" varStatus="i">
			<tr>
				<td><input type="checkbox"  id="empconfirm" name="check" value="${emp.id }"></td>
				<td><c:out value="${emp.name }(${emp.id })"/>&nbsp;</td>
				<td><c:out value="${emp.dept }"/>&nbsp;</td>
				<td><c:out value="${emp.email }"/>&nbsp;</td>	
			</tr>		
		</c:forEach>
	</table>
		<input type="button" value="확인">
		<button onclick="window.close()">닫기</button>
	</form>
	</center>
</body>
</html>